import 'package:flutter/material.dart';

class Userbean with ChangeNotifier {
  String name;
  String address;
  int age;

  Userbean({this.name = "默认姓名", this.address = "默认地址", this.age = 1});

  void update(String _name, String _address, int _age) {
    this.name = _name;
    this.address = _address;
    this.age = _age;
    notifyListeners();
  }
}
